While reading txt file lines. I can't append list or update dictionary why